package com.example.stitch;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.TextView;

public class ThreadCheck extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.color_item);
		
		Bundle extra = getIntent().getExtras();
		TextView taste = (TextView) findViewById(R.id.colorRect);
		TextView number = (TextView) findViewById(R.id.colorNumber);
		TextView name = (TextView) findViewById(R.id.colorName);
		TextView count = (TextView) findViewById(R.id.colorCount);
		taste.setBackgroundColor(extra.getInt("color"));
		taste.setText(extra.getString("taste"));
		number.setText(""+extra.getInt("number"));
		name.setText(extra.getString("name"));
		count.setText(""+extra.getInt("count"));
	}
}